Adding method to browseFile.