How to automatically download a file after hitting Submit button