update routes and search controller