Past simple vs past continuous
When - is often followed by the
past simple.E.g. When I came home, the door was standing wide open.
While is often followed by the past continuous
E.g. While I was travelling around Europe I visited many different cities.