add global search to index and sidebar