Added Delete Template functionality