Refactor root table cell code to adapte new htll compiler