fixed the pin getting created on every change. only change content of popup now