switched to ajax from websockets