replace this.target by node and layer in onCheckChange