added jquery,renamed labels and fixed nested attribute