Refactoring explore_url