implement the search bar,including the click response of the cancel button and the search button.