Dynamically show/hide navigation elements