use ui-routing to resolve files