adds confirmation dialog when deleting documents