Switching of Polymer Brushes