update category method