refactor header layout