update poopup code