updating popup code place