added save on focus lost