Fixes github issue #53
Fixes pagelength resetting to 5 when creating paging controls