add alert handler