added search button functionality