Update from onevent attributes to event listeners