add id to component and use for registry lookup