Merged in changes to MainWindow to allow refresh of panels on open.