Called the openfiledialog twice