added renaming function to restore folder function