working on MainWindow class