Added subcategory filter functionality