add chatting functionality