alert callback now invoked properly