Added some code or updating status and running code on the ui thread