Only modify dom and scroll if there any new message