update ui as per websockets