connects every document to its view