improved popup and print