Added ajax capabilities