The frame should be put into the dishwasher. You can wash the hat in the dishwasher, but make sure you don't wash dishes that have food in them. It's fine to rinse dishes in the dishwasher.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.