make sure we are updating the stats on the ui thread