Updated with dymanic ajax request