decompose angular files and set up ui-router.