View page for document

add some code for view document/ some times only need view document