Starts to move pagination into records view.