finish view document page