factored confirm dialog to separate function to allow re-use
factored confirm dialog to separate function to allow re-use

amcat/amcat,tschmorleiz/amcat,tschmorleiz/amcat,amcat/amcat,amcat/amcat,amcat/amcat,tschmorleiz/amcat,amcat/amcat,amcat/amcat,tschmorleiz/amcat,tschmorleiz/amcat