some bug fixes. Made centroid layer respond to location trait selection