initialize ui-router.