working real time updates to ui