add UsePreviousTemplate flag to updating stacks