refactoring header UI and label filter