added event for resizing window.