Allow user to connect line to router's pin

I will add some comments to explain it