changed the layout of the main window