add event and event loader