Adding pagination to assign students