add triggers for events