adds auto scroll whenever a new message is displayed