updates for resize