Update popup.php