change location of the if statement in index for advertisers