Use events to register icons