connected delete api request
misc
update selected template after delete request