Added ng-controller directive to store and update name model on scope