update resize event