corrected if logic for filter ui config