Control strategy for urban traffic in a macroscopic approach