add on/off button functionality.

add on/off button functionality to enable disable proxy.