added ajax and JSON, please fix table rendering