The calculation and display of the dists is now condition on an added submit button