Creating the MainWindow