fixed update and delete to work with search results