refactored resetMeasurement to resetDefaults

Added textDefaults to function