Jenn-Air Dishwasher Runs When Door is Open

Model JDB1100AWS. The door would not latch and it would run with the door open. I just replaced the door latch (with switches) and now it will latch but it still runs with the door open and will not stop when the door is opened mid-cycle. If I hit the start/cancel button, the drain motor will engage and drain it, but will not turn off until I hit the start/cancel button a 2nd time. Any ideas?

Here are your parts
Parts for Jenn-Air JDB1100AWS Dishwasher - AppliancePartsPros.com

See the attachment for your tech sheet.

If this unit used to work correctly then I would say that the control board is shot.

If it has always done this then I would check that wiring is correct.
Could be someone messed with the wiring before you got the unit.