updated search functionality and organization of routes, working on tests