Update GUI only on main thread.