tweaks involving MainWindow.