Dynamic navigation for horizontal menu