Correct grammar mistakes in the following paragraph
Dazzled by the sun when i opened my eyes i realized that i was in a wonderful funfair.
Dazzled by the sun, when I opened my eyes, I realized that I was in a wonderful funfair.