Update MainWindow class.