update erb template to use instance variables