added my changes to mainwindow stuff