working on node click