Adds a search bar in history