modified todo
added chat history, kept chat scrolled to bottom