Update resize handler