MainWindow working