Allow SetClass to work with events
Allow SetAttribute to work with events
Refactor making elements work with events