make popups more predictable

This would be better done in the closeHandlers for the popups but for some reason the popupView only allows for one close handler as opposed to popupPanels which allow as many close handlers as you want.