KitchenAid Dishwasher pops open(latch changed)

I have already replaced the latch and strike, had to replace tension ropes as they had broken on one side, but dishwasher keeps popping open during cycle. Please help me. I’m planning on changing the door switch to see if that does anything.