changed angular to use ui-router