Fixed setOn:

switch.on = bool; didn't update the appearance of the switch.