update chat history