added some initial ajax code