Fixed add/edit button bug.  There was a function on the $scope called 'add' which was the same name as the 'add' variable on the $scope

So at various times the add variable would get set with a function and
vice-versa.  Changed add function to insert.