editing parent and child
do not allow connect parent and child twice