Added functionality to file selector buttons