updateItemsOnPage updates the amount of pages displayed by the pager

Fix for Issue #49
Merge pull request #50 from michael-misshore/issue-49-fix

updateItemsOnPage updates the amount of pages displayed by the pager