Well, MainWindow is now a singleton class, so it doesn't need to be static.  It could have a getter if it needs to be used in other places.