functionality to choose file name