refactor hide filter