updates table resizing properly