implemented wire to wire connection in MainView.mouseReleaseEvent