added onclick to nodes