More error checking on previous and next page no