Added saving open/close state of tree across updates