* refactor alert group * added delete alert group and cascade delete alert history * modify note * modify some code