added subcategories and categories functionality