Added update methods for categories and subcategories