Dispatch block for Receive

Placed the code that updates the textview inside a dispatch block in
the receive function.