Adding Ajax pagination to the category template