setOn and setOff in Controller