small changes in message view and js file