format the popup