added control panel on/off switch