add manhattan distance + improve UI