updates last week connecting the threaded code to the ui