added success and failure notifications