changed naming, resize event handling