Added pagination to listing of tasks