Improving the asycnrhonous GUI example

* Read the number of iterations from the text box
* Call to calculate pi asychronously