refactoring system of urls