added reset template if cancel