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