Edit MainWindow class