Thanks a lot. That was missing.

One problem remained. Due to the event listener you made within the applyState method, the restore process is done everytime a node is opened or closed. Beside the...