Ajax part added

test cases missing, will add soon