check file dialog