correct active state for "category" and "subCategory" buttons