added state filter conditions to categories