Added scope function to nav-tree for modal loading. Angular loads modal's body dom asynchronously with ng-if