Made the number edit better at maintaining its correct display state.