deal with the nextpage