adds autoscrolling on every new message in the chatroom