fixed the layout of the switch cell