Fix messages box to scroll down when new msg comes, fix some lint issues.