use component/event for event registration