WIP implementation of MainWindow