refactoring url