Fixed anchor nesting, added appropriate ng-href attributes to buttons