Add call of events in the main