modified the files for search behaviour