Wireup event handlers.