Generalize SparkUI header to display tabs dynamically