MainWindow has been transformed in a singleton