add xml to popup