added routes for search funtionality