table modal works