new distance measuring func
returning functionality to flatten
rearranging panel
replacing icon and relabaling operator