Adding pagination to task view