small fix and use native file dialog