refactoring via angular : fixing navbar