Click a document to view or download