Delete popup code