Added Event Handler when Errors and Warnings change