fix dummy customevent popup
add custom event handling