add resize for layout