Refactor header into its own template