implemented websocket connection into dashboard