Upgrade angular and use ui.router