added click event on outer connections, toggles inner connections