got modal working better

instead of putting it in ng-controller put it in appjs