close navigation when clicking links