Made main window load last.