Added dialog box to choose file.