moved refreshPopup calls to the listener on storage