Correcting Ajax template