add the func for save files when lost focus