implement function to handle table in ContentVariablesController