Remove the need for showMessage() by modifying $scope.messages directly