setting up routers and views for search