change force-directed view so that it only shows graphs when there is an active search