implement scrolling through all pages of a document