Refactoring Atraci to angular based app