Added support for click events on nodes