improved template implementation: cssClass usage