Maytag dishwasher fills, then drains

my dishwasher fills like normal, regardless of cycle, then clicks a couple times, like usual, but then rather than going into wash mode, immediately starts to drain. tried unplugging it and restarting it, if you hit the cancel button it will activate the pump to drain it ( even though it already has drained) it seems to be relatively self contained no external solenoid plungers etc. any help would be greatly appreciated.