Update resize handling