Use switch as checkbox