added resize for tab change