add alerts when switching agg-type