generate meters/lines UI dynamically