refactor urls in router with namespace