Added support for clicking on nodes