Work in progress. Simplifying and consolidating duplicate code to run candy CRUD modals