fix the export study so we can do it via ajaxform and just trigger download once finish