New feature: add methods for setting alerts to the ApplicationController.