Improved confirm/ask method.

It now wait results before close, and add a spinner.
Merge branch 'confirm-ask-wait-results'