Added ajax code