conditional get headers added to templates_controller