used underscore and templates to create newHTML for rows