cleaning up display flipping, search vs navigate, legend change