refactoring addHeaderItem
Refactoring addHeaderItem