update total value in category