use a single file dialog instead of creating new instances