updating resize event trigger