moved app and mainwindow classes into their own files