added show/hide of control panel