add refresh to close the websocket -2