Updated the ConfirmDialog to support AJAX requests