updateItemsOnPage updates the amount of pages displayed by the pager

Fix for Issue #49