updated examples/environment/pages.jsx with nextPage() and previousPage()