Added DocumentViewerDelegate to delegate opening correct app for document types