add event handlers for overlay
add events