modify func PreviewFold and lopen