handle renaming of files to update tabs etc