call resize function after the window load