updated the pagination to have just a previous and next button.