change document tree