adding a delete btn in edit template