assets\UI\InGame\Popups\Demographics.lua and Demographics.xml; also, you need to replace the OnPopup function by using an external trigger to queue the pop-up. I added a pop-up in the ImprovedNotifications mod (it's enqueued in DiploCorner) , might be worth checking out for you.