refine the switch button