moved default event handlers to object