added template rendering of the clusters; trouble in getting dynamically the height of elements (currently hardcoded)