added names to chatting window, modified some TCP behaviors