added dynamic category and sub category