While we were talking, it started to rain. While we were talking, it was starting to rain. Are they both grammatically correct? Best regards.