Replace Name of categories and subcategories from element to attribute