updateDistanceWarningUsingFrame