new method in Pagination library next, previous