fixed viewing of documents