updated. URL condition doesnt work