proper popup handling
starting file upload