The words 'when' and 'while' are often used to connect clauses in Past Continuous and Past Simple.
Example: She was cooking dinner when her husband came home.
Example: While I was studying, my brother was playing games.