fixing a minor issue with display of list of pages