update main window