GE GSD3900L00BB Beeping Help

Hello,

I have been reading the forum and think I may know the issue but I want to check with you before I order the part. If I do a normal clean and dry. When the normal cycle is almost done the Start/ Reset light starts blinking Green and the unit is beeping. I have to unlatch for the beeping to stop and hold down the reset button to reset it. I have tried cutting the power to the unit for 30 minutes to the unit but that did not help. The dishwasher does this every time. Is it the control board or it is something else? Can anyone help?

So I took this apart and figured out it is because the soap lid wont stay closed at the end of the cycle causing an error. I am not able to stop the beeping by resetting until I can eventually get the lit to shut again. What part controls the lid staying shut? Why does it shut fine sometimes but not others? And why once I get it to shut again it fixes the issues?:mad: