merging updated templates and ajax requests