modify checkbox tree, making it show checked nodes correctly