using sweet alert for confirm() analog