prevent duplicated onClose(), removed offset=0 from table toString