Refactoring header bar.