MainActivity ui update: change to ensure it runs on the main thread

Wrap the update in a main thread runnable. Allows for safe updating of the ui from secondary thread.