more progress on table layout