fix alert callbacks and doc