Figured out how to use standard confirm-overwrite dialog (buttons were
defined, but no actions associated). Removed custom msg box.