changed ui_table_span functions