changed the UI wieeeee
changed UI and made function correct but logically incorrect by Thor.
Modified distance formula and mapping model