Use angular ui tree successfully