Bound popups to events.