add on/off button functionality.