Updating template file