BS-8827, move pagination into model.
BS-8827, Disable previous & next buttons when no more items.