fixed generate table button