changed the toggle button to a switch and moved it into the action bar