Put the pathLabel at root when opening another file and automatically expand root when opening a file.