only toggle if nav is visible