callbacks for table updates