I thought it was Dean's "Patrick's had a fall" that was her lightbulb moment rather than Denise herself.
A fall, number 27 and Jane/Ian walking past.
Hmmm....
And judging from that end bit, Nick will burst in on the wedding day and reveal Ronnie's plotting.