remove old popup code