add handlers for the on/off actions