Update ajax url and template information.