Close nav when opening a modal from the navigation