changed delete to remove deleted item from view