Added page navigation. Needs some minor improvements but works.