update the fold level when opening a new file