Adding first code for choose file logic