safer reset and test of number of edit for saving note