add function stock ui tree