collapse navbar dropdown when link clicked