New way of detecting the url using different delegate