removed unused code
fixed bug which does not correctly display the control panel's navigation menu when CP status was maximized and CP was mini