delete puts message
refactored out controller logic into model