- implemented resize event