categories and sub categories are working