Update main window