add save & restore interface for ndb, and improve code for ffndb dialog when nes reset.