Fix component add/change and delete dialogs

Ah, nvm, I think I've got it. If we are trying to find all connections connected to this component, I think it would be better to just look through each connection's targets and source instead of working with parts of a string. Thoughts?