ajax template for definition editing