fix registry and control panel
add event handler