refactor url_and_router