Fixed next page selection and updated each section with the code.