finished mainwindow class cleanup