nextPage and prevPage in res