refactoring edit controller / service code a bit, and using ng-href in place of straight href in some places (need to convert the rest)