Adding the pagination for tasks