Split MainWindow stuff into two new controllers.