adding toggle button for control panel