sort by distance, major UI changes