add save tree state