fixed popups that weren't working with img,url from json