Add missing add to preferences when undoing reset
Add analytics for undo