removes popup code