show dialog and call mainCtrl callback when confirm dialog