framework for adding children to types
hidden input for key storage
way to know what child type is being added