WIP: applying ui-router.