Update pagination to be used as an injection