Added proper handlers.

Added comment to the event handler to indicate where to update the deficit calculator.