fixes table bug, adjusts table width