added $scope.$apply() on receiving chat message