updates headers of templates as well