simplify tps calculation
added skeleton for web display mode