updates to pages
implementing new method to keep track of page index