Click on a document to load it on the viewer