implemented the confirm dialogue to remove the row and added a new item to the to do list