overloaded method

added overloaded method for on and off