Implemented first type, implemented closing of all windows if control panel is closed, implemented ShowCommand