changed switch style