Onclick separate the leaf node infomation using map of the node data