[update] table input functions almost done