finished most edit table functions