added gesture support & websocket comm.