get chat history working