fixed main window layout in all orientations