Creating a pot object on the modal dismiss.
This all needs so much refactoring, it's crazy.