DiscardController.js - added this to stuff in the update method