Add pagination stuff as a new layout.