refactoring via angular : network query updated