Updated the browse button code and test code for the browse button