ui: confirm dialog only when deleting key directories #521