delete confirmation dialog & bug fixes