edit form displays the correct table Id