auto-collapse navbar after selection