add two new rule types: SumMaxVal and SumMinVal
fix app frontend bug