using dialog to choose import file