adapt filechooser to new api