Actually define the event handler attributes.