Added a MainWindow reference