The Tories lost power to the United Farmers of Ontario in the 1919 Ontario general election but were able to regain office in 1923 Ontario general election due to the UFO 's disintegration and divisions in the Ontario Liberal Party .