Rewrite global-nav in dinamic
Refactor global-nav using foreach