adding bootstrap classes and passing parent and sub category to search results