Updated chat

chat functional with socket.io