Finish header templating logic