Fix main window layout