Added button and alert dialog.
Hide alert correctly when it completes.