Made the control panel hideable; Fixed edit mode when maximizing or
restoring the window