add ajax invoke method to add.html file.