changed delete-view to AlertDialog