add file checking when focus lost