resize main table