Reorganize main window