update handlers for onoff