fixed the file choser, now working (could be more user friendly though)