format pop-up windows