Moved header rendering to dedicated method.