fixed small bug in dynamic tree ui change -- still work in progress