handle confirm() calls in apps