The connection should give you plenty of time.
If your originating flight is running late (20-30 minutes) and the connecting flight is on-time, I suggest using the bathroom on the plane for your kids toward the end of the first flight, instead of planning to make that stop in the airport terminal.