Added functionality to file select