Added chat history limit. Fixed scrolling.