onchange for tree control