Adding pagination to attendance