Add all event handlers on the server side.