popup and update integration code