Renamed nextPage to newPage,

in order to make it slightly easier to understand what's going on.