on node click modified