Updating the demo to show how to rebuild the pagination.