improved the connection functionality & add arrowPath