update the pagenation