graceful error handling for trying to view a new document