refactoring to angular project
code correction