changed the deleting scheme to html templates