fix table resizing
update table scaling