set content type and file name so that file download is saved