Fix event handlers and style.