src: add confirm dialog