Updated TControlPanel to be more dynamic.