Implementing the search box. Search function doesnt work