open a dialog to select file