Added listbox for the distances subroutine