optimized component refreshing when renaming an element