filter categories by active flag