pass current document to views, so they work on this document, not with global pointers and MainWindow