renamed component name to type.  changed event type parameter to event