Added delete checking for survey template