Dishwasher gone crazy

My diswasher suddenly stops mid cycle and all of the lights on the control panel start blinking. I can usually reset it and get it to finish. Also, it tells me that it’s low on rinse agent even if I’ve just filled it. Do I need to replace the control panel, keypad, board, or all 3?