implemented automatic chat scrolling