Added click event listeners to nodes.