added a delete handler