Problem with nested components

Almost correct, but with one major difference: buttons are created and attached in the constructor of the Cockpit component.