added a check to see if the component is already added to the dep list