Putting error notification into Application