Update the Template file