make sure the popup function gets the right id