added logic for table in progress