Word tree and clicking function works