update indented tree