add event to library