working editing for subcategories