Popup not refreshing correctly.