add logic to show or hide the search button depending on the type selected