Changed prompt into an alert

Changed prompt into an alert
Max distance

Max distance