It sounds like the bracket is broken and no longer holding the micro switches in the right position.
Part number: AP2988571
You have to figure out how to take it out.Normally there are 2 screws holding it down.
Sending the pictures may help.
Here are the breakdown diagrams and Dispenser Front parts for Whirlpool GD25BFCHB00 - AppliancePartsPros.com