Change button back to previous aggregation type if user doesn't click OK