moved rendering table into onRender