modify cilck function on tree