Adds error and alerts to UIViewController