The dispenser is mounted on the inner panel of the dishwasher door. The cover of the dispenser has a latch mechanism which is controlled by the electronic board or the timer. The latch releases to open and dispense the detergent at the proper time during the cycle.