[frontend] Renaming file now changes local state variables, renaming multiple times now works properly, the delete icon is preserved on rename