Added UI to change aggregation_type