added a resize event to check the windows position