added handling around exit and save to table errors
restricted file select to add txt too