added layout for main window