previous and next pages
don't navigate to invalid pages