changed order of mainwindow getter and setter