main window update