removed some globals from MainWindow