added ajax to dynamically add iternry