I would use continuous in both cases, because it is important that those two actions were in process when something else happened. Yes, simple is possible too. But if it is a test with only one correct choice use continuous
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.