Update name in tree when a resource is saved