header directive now uses view template to render header rather than doing it inline