fixed replicate bug and added spaces in html between labels and vaules