fixed messageCtrl in index.html