main window updated