Refactored navigation menu into a directive