updating UI from thread, includes JSON decoding + untested & unimplemented http request code.