adding onclick to node