foam controller