WIP: template up mainwindow