move event handlers to wizard