add window method (resizeModal)