turn on and off the switches
added some styles