Added file select dialog function