modify resize window onload