added resize event to window