add component to index