modified ajax template