wip: MainWindow fixed displaying document