set the searchbar href when index change