opening the popup or tab clears alerts