refactoring angular files