added some ui-router config, controllers to use controller as syntax.