Refactor Monitoring Page with websocket