update tree after drag and drop