add websocket and input form