moved record data table rendering from js to template