How to remove the magenta colour box while creating a new link between two nodes

I wanted to remove Magenta Rectangle that comes while drawing a link between two nodes. So what did is I added this in my code.
diagram.toolManager.linkingTool.temporaryFromNode = GJS(go.Node,{ selectable:false, layerName:'Tool', portId:'' }); diagram.toolManager.linkingTool.temporaryToNode = GJS(go.Node,{ selectable:false, layerName:'Tool', portId:'' });

By this the magenta Rectangle Got removed but now when draw a link the temporary link is formed from the centre of the node where as previously it was from the sides of the node. What I am missing here.
To be more clear I am sharing screenshots
before:

after:

what I actually want is this.

Actually I got solution from the forum. I set the temporary link LayerName:‘background’; Thanks !