sets the id of the element if the component is given