Extract header rendering into the layout

Since all views show it.