Fixed pages with no reference. Added Tree Creation and navigation to document viewer