Handle plugin_instance and type_instance in wui