updates on resizing