updates to main window