added error events to widgets