showConfirmDialog loop