adding changes in the pagination