paginator working