added search functionality needed factory from subcategory and category container for correct work