minor changes to mainwindow.py