added autoscroll for chat window