Dishwasher gets stuck in rinse cycle

I have a Frigidaire dishwasher that is just about two years old now - model FDB510LCB3 I believe. All of a sudden it has started to give me problems, in particular it seems to get stuck in the the rinse cycle until you manually shut it off. I am thinking that I need to replace the timer (part number AP3220131) but am not sure so any advice or suggestions would be greatly appreciated.

Thanks,

Matt