Use angular-ui to replace anguler $routeProvider with $stateProvider