Changes to Popup and alert deletion