scrolling to the changed element and added a confirmation to delete