added functionality to trigger bootstrap alerts in controller