changed tree click handler