updated search functionality and search.ejs page