update erb templates to use instance variables