Measure child on showPanel()
Cleanup logs
Refactor duplicate code