code for search button added