Update setEvents and setIconEvents API