included pagination to the detail view