main window changed