fix error message display when loading study files

the ajax post wasn't letting the page refresh correctly