addSubcomponent method renamed to addComponent