problem with ui-event in file loaded via templateUrl - AngularJS