added chat history in the view