added possibly-foolish resize event handling