I think we don't need this condition now, but 
```
visibleItem.hidden = !show;
if (!show) {
  renameButton.disabled = true; 
}
```