Pagination Changes to show custom number of pages