changes main window