refactor duplicated code into function calls
update docblocks
update exception check
build utility method to get a submission to edit/delete