Move mainwindow to application