refactor Header to dynamically create headline columns at specified column indices