Added click detection to connection objects