add local angular, refactor for new route mechanism