Put modification of the main window for loaded site back to the MainWindow class.