Fix component add/change and delete dialogs

@justinvdm If its a bi-directional connection and the user clicks on the "Flip direction" button it removes the second route. We never really discussed what should really happen here... I am happy to change this behaviour.