Dirty dishes are often the result of a dishwasher that doesn't get enough water.  The dishwasher water-inlet valve, which brings water from your outside source, may be responsible but it's easy to replace.  It can be found in bottom of your dishwasher, under the access panel.  If the valve is defective, you can replace it inexpensively.