Split functioning of what the main window will be