not reloading the page if a file load fails