well, after another thought, it's better to keep it here, especially if you move this object to a Compose property.

But then you should also call updateType in show/hide.