Original sentence: According to the theory of Estonian legal continuity, Uluots became prime minister acting in the duties of the president, as dictated by the Estonian constitution.In July 1940 the former Estonian President Konstantin Päts was arrested and deported to Russia.When the Nazis invaded the Estonian SSR in 1941 the communist government was overthrown
Edited sentence: After the Estonian President Konstantin Päts was arrested and deported to Russia in July 1940, Uluots became prime minister acting in the duties of the president, as dictated by the Estonian constitution.When the Nazis invaded Soviet-occupied Estonia in 1941 the communist government was overthrown