add delete feature to template