refactor header elements