disables table when needed