refactor angular config