adding edit function and changing rename_remove