Add header code to layout.