refactoring nav element