Added methods to support DOM events