Rebellions in Upper and Lower Canada in 1837 and 1838 prompted the British to join the two colonies forming the united Province of Canada

Could you correct the punctuation please?
Rebellions in Upper and Lower Canada in 1837 and 1838 prompted the British to join the two colonies, forming the united Province of Canada.