chatView.js changes