implemented table rendering