make popups more predictable