add warnings with a confirm dialog