adding flex header