updating categories pagination