adding control check for data table