updated front end socket.io