clean up the popup and event views