add neater pagination to views