Change component type