connects every document to its view
Merge pull request #166 from kamalpreetgrewal/master

connects every document to its view