instead of getting the template for each activity, i changed it to get it once, and clone it for each. it was wrapped in a closure before but it didnt seem to be needed.