added body resize hook