Issue#386 confirm dialog

resolves #386
resolves #400
resolves #401