How do you deal with a spirited child?

Am

How do you balance discipline vs stifling their curiosity. Oh and the screams when we are indoors. My girl got a great set of pipes when things don’t go her way.