tree expansion states now are also saved when the user opens a new file