Adding pagination to certain views.