popup and download should work together