started working on mainwindow