refactoring on window object (extraction of the header part)