refactoring urls