-started the framework for MainWindow