Working popup, setlocation and update