modifiy preview dirname