change fileloader to filedialog