search functionality

today i have written code for the search functionality