Preparing the button to search.